// 本地用liverserver启动时， 把three-games前缀去掉


 const urls1 = { 
    factory_hdr:'/assets/factory/factory.hdr',
    living_room_hdr:'/assets/factory/living_room.hdr',
    field_sky_hdr:'/assets/factory/field_sky.hdr',
    paintedskyBox: {
        px:'/assets/plane/px.jpg',
        nx:'/assets/plane/nx.jpg',
        py:'/assets/plane/py.jpg',
        ny:'/assets/plane/ny.jpg',
        pz:'/assets/plane/pz.jpg',
        nz:'/assets/plane/nz.jpg',
    },

    bonus_mp3:'/assets/plane/bonus.mp3',
    engine_mp3:'/assets/plane/engine.mp3' ,
    explosion_mp3:'/assets/plane/explosion.mp3',
    gameover_mp3:'/assets/plane/gameover.mp3',
    gliss_mp3:'/assets/plane/gliss.mp3',

    shot_mp3:'/assets/factory/sfx/shot.mp3',
    atmos_mp3:'/assets/factory/sfx/atmos.mp3',
    eve_groan_mp3:'/assets/factory/sfx/eve-groan.mp3',
    footsteps_mp3:'/assets/factory/sfx/footsteps.mp3',
    groan_mp3:'/assets/factory/sfx/groan.mp3',

    eve2_glb:'/assets/factory/eve2.glb',
    star_blb:'/assets/plane/star.glb',
    microplane:'/assets/plane/microplane.glb' ,
    bomb_glb:'/assets/plane/bomb.glb',

    factory2_glb:'/assets/factory/factory2.glb',
    swotGuy_glb:'/assets/factory/swat-guy2.glb',

    pool_table_glb:'/assets/table/pool-table.glb',

    ball1_png:'/assets/table/1ball.png',
    ball2_png:'/assets/table/2ball.png',
    ball3_png:'/assets/table/3ball.png',
    ball4_png:'/assets/table/4ball.png',
    ball5_png:'/assets/table/5ball.png',
    ball6_png:'/assets/table/6ball.png',
    ball7_png:'/assets/table/7ball.png',
    ball8_png:'/assets/table/8ball.png',
    ball9_png:'/assets/table/9ball.png',
    ball10_png:'/assets/table/10ball.png',
    ball11_png:'/assets/table/11ball.png',
    ball12_png:'/assets/table/12ball.png',
    ball13_png:'/assets/table/13ball.png',
    ball14_png:'/assets/table/14ball.png',
    ball15_png:'/assets/table/15ball.png',
}
// 部署的根目录是gitee.io  需要手动加上three-games

const pre = 'https://public914.s3.bitiful.net/three-games'
const urls = new Proxy(urls1, {
    get: function (target, name) {
        if(typeof  target[name] === 'string'){
            
            return   pre + target[name] 
        }else{
            return  new Proxy(target[name], {
                get: function (target, name) {
                    return pre + target[name]
                }
            })
        }
    }
})
export { urls}